import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/login',
      name:'login',
      meta:{"title":"登录"},
      component: () => import('@/views/modules/login/index.vue')
    },
    {
      path: '/',
      // redirect: '/home',
      name: 'home',
      component: () => import('@/views/base-views/main/index.vue'),
      meta: {
        "title":"首页"
      },
      children: [
          {
            path: '/table',
            name: 'sysTable',
            meta: {
              "title":"表格"
            },
            component: () => import('/src/views/modules/sys/index.vue')
          },
      ]
    },

  ],
})

export default router
